<?php if(!empty($this->p_details)):?>
	<div style='border: 1px solid #ccc ; padding: 10px;'>
		<table>
			<tr>
				<td colspan='3'><b>Product details</b></td>
			</tr>
			<tr>
				<td>Name</td>
				<td>:</td>
				<td><?php echo $this->p_details->name ;?></td>
			</tr>
			<tr>
				<td>Quantity</td>
				<td>:</td>
				<td>
					<?php echo $this->p_details->quantity ;?>
					<input type="hidden" value="<?php echo $this->p_details->quantity ;?>" id="p_quantity" name="p_quantity" class="p_quantity" />
				</td>
			</tr>
			<?php if(!empty($this->p_details->cash)):?>
				<tr>
					<td>Points</td>
					<td>:</td>
					<td>
						<?php echo $this->p_details->pointx ;?>
						<input type="hidden" name='pointx' id='pointx' value='<?php echo $this->p_details->pointx ;?>' /> 
					</td>
				</tr>
				<tr>
					<td>Cash</td>
					<td>:</td>
					<td>
						<?php echo empty($this->p_details->cash) ? '' : $this->p_details->cash ;?>
						<input type="hidden" name='cash' id='cash' value='<?php echo $this->p_details->cash ;?>' />
					</td>
				</tr>
			<?php else:?>
				<tr>
					<td>Points</td>
					<td>:</td>
					<td>
					<?php echo $this->p_details->point ;?>
						<input type="hidden" name='pointx' id='pointx' value='<?php echo $this->p_details->point ;?>' />
					</td>
				</tr>
			<?php endif;?>
		</table>
	</div>
<?php endif ; ?>